﻿using System;
using System.Collections.Generic;
using System.Linq;


namespace BankSystem
{
    public class Bank
    {
        private List<Account> accounts = new List<Account>(); // 银行保存用户

        public void AddAccount(Account account)
        {
            accounts.Add(account);
        }

        public Account GetAccount(int accountId)
        {
            return accounts.FirstOrDefault(a=>a.id==accountId);
        }

    }
}
